package com.seuic.hnapps.util;

import android.app.Application;
import android.content.Context;

import com.seuic.hnapps.BaseActivity;

public class PzGetUtils {
    public String pzutil(Application application) {
        String pz_nums = null;
        int pz_num = SpUtils.getSPUtil(application).getInt("pz_Num", 0);
        if (pz_num < 10) {
            pz_nums = "000" + pz_num;
            SpUtils.getSPUtil(application).putInt("pz_Num", pz_num + 1);
        } else if (pz_num >= 10 && pz_num < 100) {
            pz_nums = "00" + pz_num;
            SpUtils.getSPUtil(application).putInt("pz_Num", pz_num + 1);
        } else if (pz_num >= 100 && pz_num < 1000) {
            pz_nums = "0" + pz_num;
            SpUtils.getSPUtil(application).putInt("pz_Num", pz_num + 1);
        } else if (pz_num >= 1000 && pz_num < 10000) {
            pz_nums = String.valueOf(pz_num);
            SpUtils.getSPUtil(application).putInt("pz_Num", pz_num + 1);
        }
        return pz_nums;
    }
}
